package com.yourcompany.api.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_region")
@Schema(description = "地区")
public class SysRegion extends BaseEntity {
    
    @Schema(description = "父级ID")
    private Long parentId;
    
    @Schema(description = "地区名称")
    private String name;
    
    @Schema(description = "地区编码")
    private String code;
    
    @Schema(description = "级别：1-省 2-市 3-区县 4-街道")
    private Integer level;
    
    @Schema(description = "排序")
    private Integer sort;
    
    @Schema(description = "状态：0-禁用 1-启用")
    private Boolean status;
} 